﻿using System;
using System.Collections.Generic;
using System.Text;

using Obsidian.Edm;
using Oak.Core.Model;

namespace Oak.Model
{
    public class CoActCategoryQry: QueryInfo, ITreeNodeQueryInfo
    {

        private LongListField categoryIds;
        private StringListField paths;
        private BoolField getChildren;
        private BoolField enabled;

        public CoActCategoryQry()
        {
            base.InitModel(new IModelField[] {
                categoryIds = new LongListField(this, null, "catIds"),
                getChildren = new BoolField(this, null, "getChildren", false),
                enabled = new BoolField(this, null, "enabled"),
                paths = new StringListField(this)
            });
        }

        public LongListField CategoryIds { get { return categoryIds; } }
        public BoolField GetChildren { get { return getChildren; } }
        public BoolField Enabled { get { return enabled; } }
        public StringListField Paths { get { return paths; } }

        public LongListField NodeIds
        {
            get { return categoryIds; }
        }
    }
}
